package com.loong.user.common.backend.result;

import lombok.*;

import javax.persistence.Column;
import java.util.List;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2020-10-16 17:30
 */
@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class ManageRoleResult {
    private Long id;

    /**
     * 部门id
     */
    @Column(name = "department_id")
    private Long departmentId;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 父级id
     */
    @Column(name = "parent_id")
    private Long parentId;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 用于前端展示用
     */
    private String checked;

    List<ManageRoleResult> children;
}
